<?php $url = new Zend_Controller_Action_Helper_Url();?>
<?php $this->nav = "<a href=\"".$url->simple('','')."\">首页</a> > 圈子活动"?>

<?php $url = new Zend_Controller_Action_Helper_Url();?>
<?php Zend_Date::setOptions(array('format_type' => 'php'));?>
<div id="announcement_title">
<div style="float:right; margin-top:6px;">&gt;&gt;&nbsp;&nbsp;
	<a href="<?= $url->simple('post', 'announcement', null);?>">活动发布</a>
	&nbsp;&nbsp;&nbsp;Submit</div>
</div>

<div id="content_border">
	<div class="w-listp">
		<? foreach($this->announcements as $announcement):  ?>
        <div class="announcementitem clearfix">
        	<table width="100%">
        		<tr>
        			<td width="15">
        				<img src="/skins/blues/images/dot03.gif" />
        			</td>
        			<td width="490">
        				<?php if ($announcement->top):?><font color="#FF0000">[置顶]</font><?php endif;?>
            			<a href="<?=$this->url(array('announcementId' => $announcement->id),
            	        'announcement_content'); ?>"><?=$this->Escape($announcement->title); ?></a>
        			</td>
        			<td width="80">
        				<? $date = new Zend_Date($announcement->publishdate, Zend_Date::TIMESTAMP); ?>
        				<?= $date->toString("Y-m-d");?>
        			</td>
        		</tr>
        	</table>
        </div>
        <? endforeach; ?>
        <div style="width:400px; padding-left: 80px;">
        <?if ($this->announcements instanceof Zend_Paginator): ?>
        	<?= $this->paginationControl($this->announcements, 'sliding', 'announcement/_paginator.phtml')?>
        <?endif?>
        </div>
    </div>
</div>

